package entities;

import org.apache.hadoop.hbase.util.Bytes;

public class Enterprise implements PlainAddable{

    private String enterpriseID;

    private String enterpriseName;

    private String unified_social_credit_code;

    private String organizing_institution_bar_code;

    private String tax_registration_certificate_no;

    private String baidu_credit_code;

    public Enterprise(byte[] id, byte[] name, byte[] social_code, byte[] bar_code, byte[] tax_no, byte[] baidu_code){
        this.enterpriseID = Bytes.toString(id);
        this.enterpriseName = (Bytes.toString(name));
        this.unified_social_credit_code = (Bytes.toString(social_code));
        this.organizing_institution_bar_code = (Bytes.toString(bar_code));
        this.tax_registration_certificate_no = (Bytes.toString(tax_no));
        this.baidu_credit_code = (Bytes.toString(baidu_code));
    }

    public Enterprise(String enterpriseID, String enterpriseName, String unified_social_credit_code,
                      String organizing_institution_bar_code, String tax_registration_certificate_no,
                      String baidu_credit_code) {
        this.enterpriseID = enterpriseID;
        this.enterpriseName = enterpriseName;
        this.unified_social_credit_code = unified_social_credit_code;
        this.organizing_institution_bar_code = organizing_institution_bar_code;
        this.tax_registration_certificate_no = tax_registration_certificate_no;
        this.baidu_credit_code = baidu_credit_code;
    }

    public String getEnterpriseID() {
        return enterpriseID;
    }

    public void setEnterpriseID(String enterpriseID) {
        this.enterpriseID = enterpriseID;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public String getUnified_social_credit_code() {
        return unified_social_credit_code;
    }

    public void setUnified_social_credit_code(String unified_social_credit_code) {
        this.unified_social_credit_code = unified_social_credit_code;
    }

    public String getOrganizing_institution_bar_code() {
        return organizing_institution_bar_code;
    }

    public void setOrganizing_institution_bar_code(String organizing_institution_bar_code) {
        this.organizing_institution_bar_code = organizing_institution_bar_code;
    }

    public String getTax_registration_certificate_no() {
        return tax_registration_certificate_no;
    }

    public void setTax_registration_certificate_no(String tax_registration_certificate_no) {
        this.tax_registration_certificate_no = tax_registration_certificate_no;
    }

    public String getBaidu_credit_code() {
        return baidu_credit_code;
    }

    public void setBaidu_credit_code(String baidu_credit_code) {
        this.baidu_credit_code = baidu_credit_code;
    }

    @Override
    public String toString() {
        return "Enterprise{" +
                "enterpriseID: '" + enterpriseID + '\'' +
                ", enterpriseName: '" + enterpriseName + '\'' +
                ", unified_social_credit_code: '" + unified_social_credit_code + '\'' +
                ", organizing_institution_bar_code: '" + organizing_institution_bar_code + '\'' +
                ", tax_registration_certificate_no: '" + tax_registration_certificate_no + '\'' +
                ", baidu_credit_code: '" + baidu_credit_code + '\'' +
                '}';
    }
}
